package org.vincen.helloworld.joda;

import java.util.Date;

import org.joda.time.DateTime;
import org.joda.time.DateTime.Property;

public class PractiseTime {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
//		m1();
//		m2();
		m3();
	}
	
	
	private static void m1() {
		DateTime dt = new DateTime();
		Property p = dt.dayOfWeek();
		System.out.println(dt);
		System.out.println(p.getAsString());
	}
	
	private static void m2() {
		DateTime dt1 = new DateTime();
		DateTime dt2 = dt1.plusDays(1);
		System.out.println(dt1);
		System.out.println(dt2);
		
	}
	
	private static void m3(){
		Date d = new Date();
		DateTime dt1 = new DateTime(d);
		System.out.println(dt1);
	}

}
